Ext.define('App.view.goods.GoodsAllList', {
	extend : 'App.config.BaseGrid',
	xtype : 'goodsAllList',
	store : Ext.create('App.store.goods.GoodsStore'),
    initComponent:function () {
        this.plugins = [ Ext.create("Ext.grid.plugin.CellEditing", {
            id:"rowId",
            clicksToEdit : 1
        }) ];
        this.columns  =  [ {
            xtype : 'rownumberer'
        },{
            text : '商品名',
            dataIndex : 'name',
            editor: {
                xtype: 'textfield',
                allowBlank: false,
                itemId:"name"
            }
        },{
            text : '价格',
            dataIndex : 'price',
            align:"end",
            renderer:function(value){
                return !value?0.00:NumberUtil.fmoney(value);
            },
            editor: {
                xtype: 'numberfield',hideTrigger: true,keyNavEnabled: false, mouseWheelEnabled: false,
                allowBlank: false,
                itemId:"price"
            }
        },{
            text : '积分',
            dataIndex : 'integral',
            align:"end",
            editor: {
                xtype: 'numberfield',hideTrigger: true,keyNavEnabled: false, mouseWheelEnabled: false,
                allowBlank: true,
                value:0
            }
        },{
            text : '购买次数',
            dataIndex : 'number',
            editor: {
                xtype: 'numberfield',hideTrigger: true,keyNavEnabled: false, mouseWheelEnabled: false,
                allowBlank: true,
                value:0
            }

        },{
            text : '商品展示',
            dataIndex : 'url',
            itemId:"url"

        },{
            text : '商品描述',
            dataIndex : 'content',
        }]
        this.callParent(arguments);
	}

});